<br>
<div class="clear"></div>
<div class="grid_3">
    <div class="box">
        <h2>
            <img align="left" src="<?= $url ?>img/lastusers.png"> <a href="#" id="toggle-paragraphs"><?= $this->lang->line('general_info'); ?></a>
        </h2>
        <div class="block" id="paragraphs">

            <table>
                <tr>
                    <th><?= $this->lang->line('server_version_stg'); ?></th>
                    <td><?= $info->server->version ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('client_num'); ?></th>
                    <td><?= $info->server->users_num ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('tariff_num'); ?></th>
                    <td><?= $info->server->tariff_num ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('allonline'); ?></th>
                    <td><?= $info->allOnline->count ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('ao'); ?></th>
                    <td><?= $info->AlwaysOnline->count ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('downs'); ?></th>
                    <td><?= $info->Down->count ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('passives'); ?></th>
                    <td><?= $info->Passive->count ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('userstat_online'); ?></th>
                    <td><?= $info->server->version ?></td>

                </tr>
                <tr>
                    <th><?= $this->lang->line('debtors'); ?></th>
                    <td><?= $info->fucker->count ?></td>

                </tr>
            </table>
        </div>
    </div>
    <div class="box">
        <h2>
            <a href="#" id="toggle-ajax" class="hidden"><img src="img/ajax-loader.gif" id="loading" alt="Loading" />
				Ajax Content
            </a>
        </h2>
        <div class="block" id="ajax-content">
			Content loaded dynamically
        </div>
    </div>


</div>
<div class="grid_5">
    <div class="box">
        <h2>
            <img align="left" src="<?= $url ?>img/alarm.png"> <a id="toggle-accordion" href="#" ><?= $this->lang->line('tasks'); ?></a>
        </h2>
        <div class="block" id="accordion">
            <div style="margin:5px">
            <?php if (!$tasks): ?>
            <?= $this->lang->line('no_task'); ?>
            <?php else : ?>
            <table   style="border-right:2px dotted red;border-left:2px dotted red;border-bottom:2px dotted red">
                <thead>
                    <tr>
                        <th>Дата</th><th>Статус</th><th>Коментар</th><th></th>

                    </tr>
                    </thead>
                    <tbody>
                        <tr>
            <?php foreach ($tasks as $task): ?>
                            <td><?= $task->Date; ?></td><td><?= $task->Name; ?></td><td><?= $task->Note; ?></td><td></td>
            <?php endforeach; ?>
            </tr>
                    </tbody>
            </table>
            <?php endif; ?>
                    </div>
                </div>
</div>

                <div class="box">
                    <h2>
                        <img align="left" src="<?= $url ?>img/newuser.png"> <a href="#" id="toggle-forms" class="hidden"><?= $this->lang->line('new_client'); ?></a>
                    </h2>
                    <div class="block" id="forms" style="display:none">
                        <form action="">

                            <fieldset>
                                <legend><?= $this->lang->line('new_client_create'); ?></legend>
                                <p>
                                    <label><?= $this->lang->line('name'); ?>: </label>
                                    <input type="text" name="first-name" value="" />
                                </p>
                                <p>
                                    <label><?= $this->lang->line('login'); ?>: </label>
                                    <input type="text" name="last-name" value="" />
                                </p>
                                <p>
                                    <label><?= $this->lang->line('password'); ?>: </label>
                                    <input type="text" name="address1" value="" />
                                </p>

                                <p>
                                    <label><?= $this->lang->line('street'); ?>: </label>
                                    <select name="Country">
                                        <option value=""><?= $this->lang->line('select_street'); ?></option>
                                        <option value="Canada">Canada</option>
                                        <option value="United States">United States</option>
                                    </select>
                                </p>
                                <p>
                                    <label><?= $this->lang->line('tariff'); ?>: </label>
                                    <select name="State">
                                        <option value=""><?= $this->lang->line('select_tariff'); ?></option>
                                        <option value="AL">Alabama </option>
                                        <option value="AK">Alaska </option>
                                        <option value="AB">Alberta </option>
                                        <option value="AZ">Arizona </option>

                                    </select>
                                </p>
                                <p>
                                    <label><?= $this->lang->line('ipaddress'); ?>: </label>
                                    <input type="text" name="city" value="" />
                                </p>
                                <p>
                                    <label><?= $this->lang->line('email'); ?>: </label>
                                    <input type="text" name="address2" value="" />
                                </p>

                                <p>
                                    <label><?= $this->lang->line('home_phone'); ?>: </label>
                                    <input type="text" name="zipcode" value="" />
                                </p>
                                <p>
                                    <label><?= $this->lang->line('mobile_phone'); ?>: </label>
                                    <input type="text" name="phone" value="" />
                                </p>
                                <p>
                        <?= $this->lang->line('ao'); ?>:
                        <input type="checkbox" name="email" value="" />


                        <?= $this->lang->line('down'); ?>:
                        <input type="checkbox" name="email" value="" />



                        <?= $this->lang->line('passive'); ?>:
                        <input type="checkbox" name="email" value="" />



                        <?= $this->lang->line('detstat'); ?>:
                        <input type="checkbox" checked name="email" value="" />
                    </p>
                    <p>
                        <label><?= $this->lang->line('balance'); ?>: </label>
                        <input type="text"  name="phone" value="" />
                    </p>

                    <p>
                        <label><?= $this->lang->line('note'); ?>: </label>
                        <textarea></textarea>
                    </p>

                    <input type="submit" value="<?= $this->lang->line('create'); ?>" class="register-button" />
                </fieldset>
            </form>
        </div>
    </div>

    <div class="box">
        <h2>
            <img align="left" src="<?= $url ?>img/graph.png"> <a href="#" id="toggle-blockquote"><?= $this->lang->line('graphs'); ?></a>
        </h2>
        <div class="block" id="blockquote">
            <blockquote>
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
                <p class="cite">
                    <cite>John Smith</cite>
                </p>
            </blockquote>
        </div>
    </div>
</div>
<div class="grid_4">
    <div class="box">
        <h2>
            <img align="left" src="<?= $url ?>img/lastusers.png"> <a href="#" ><?= $this->lang->line('news_abonents'); ?></a>
        </h2>
        <div class="block" >

            <p>
            <table>
                <thead>
                    <tr>
                        <th><?= $this->lang->line('n_dog'); ?></th>
                        <th><?= $this->lang->line('created'); ?></th>
                        <th><?= $this->lang->line('login'); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($info->lastusers as $user): ?>
                            <tr>
                                <td><?= $user->Userdata2 ?></td>
                                <td><?= $user->Created ?></td>
                                <td><a href="user/name/<?= $user->login ?>"><?= $user->login ?></a></td>
                            </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            </p>

        </div>
    </div>
    <div class="box articles">
        <h2>
            <a href="#" id="toggle-articles">Міні-чат</a>
        </h2>
        <div class="block" id="articles">
            <p>увпвп</p>
        </div>
    </div>
    <div class="box">
        <h2>
            <a href="#" id="toggle-login-forms">Login Forms</a>
        </h2>
        <div class="block" id="login-forms">
            <form action="">
                <fieldset class="login">
                    <legend>Особистий кабінет</legend>
                    <p class="notice">Будь ласка введіть логін та пароль для входу.</p>
                    <p>
                        <label>Логін: </label>
                        <input type="text" name="username" />
                    </p>
                    <p>
                        <label>Пароль: </label>
                        <input type="password" name="password" />
                    </p>
                    <input class="login button" type="submit" value="Увійти" />
                </fieldset>
            </form>
        </div>
    </div>

</div>




